package com.qianfeng.smartmetting.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qianfeng.smartmetting.entity.TimeSlot;
import com.qianfeng.smartmetting.mapper.TimeSlotMapper;
import com.qianfeng.smartmetting.service.TimeSlotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.Time;
import java.util.List;

@Service  //将这个类交给spring管理
public class TimeSlotServiceImpl extends ServiceImpl<TimeSlotMapper, TimeSlot>
        implements TimeSlotService {

    @Autowired
    private TimeSlotMapper timeSlotMapper;


    @Override
    public List<TimeSlot> findByRoomId(Integer roomid, int start, int limit) {
        return timeSlotMapper.findByRoomId(roomid,start,limit);
    }
}
